package com.ljw.gulimall.product.feign;

import com.ljw.common.to.ware.WareSkuTo;
import com.ljw.common.utils.R;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.stream.Collectors;

@FeignClient(name = "gulimall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    public R getSkuHasStock(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/waresku/saveBatch")
    public R saveBatch(@RequestBody List<WareSkuTo> wareSkuTos);

}
